package com.system.user.entity;
import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.system.role.entity.Role;

@Entity
@Table(name="ACT_ID_USER")
public class User implements Serializable{
	private String uid;
	//private String id;
	private String userName;
	private String password;
	private Role role;
	
	
	//get
	@Id
	//@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="ID_")
	public String getUid() {
		return uid;
	}
	
	public String getUserName() {
		return userName;
	}
	@Column(name="PWD_")
	public String getPassword() {
		return password;
	}
	@ManyToOne
	public Role getRole() {
		return role;
	}
	
//	@Column(name="ID_")
//	public String getId() {
//		return id;
//	}
	
	
//set
	public void setRole(Role role) {
		this.role = role;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public void setPassword(String password) {
		this.password = password;
	}


//	public void setId(String id) {
//		this.id = id;
//	}


	


	
	
}
